﻿
@{
    ViewBag.Title = "运费模板添加";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<input type="hidden" id="mapRotute" map="map_set" />
<script src="~/scripts/Common/DataSet.js"></script>
<style>
      .SkuValueInput2 {
        height: 26px;
        padding-left: 15px;
        border: 1px solid #cccccc;
        width: 40px;
        margin-left: 22px;
    }
</style>
<div class="title_ding">

    <p id="location">
        当前位置：
        运费模板添加
    </p>
</div>
<div class="layui">
    <div class="shopmain">
        <div class="layui-card">
            <div class="layui-card-header">添加运费模板</div>
            <div class="layui-card-body">
                <div class="layui-form" action="">
                    <div class="layui-form-item">
                        <label for="text_shippingTemplatesName" class="layui-form-label" style="width:118px;">
                            模板名称
                        </label>
                        <div class="layui-input-inline" style="width:25%">
                            <input type="text" id="text_shippingTemplatesName" name="text_shippingTemplatesName" lay-verify="required" class="layui-input">
                        </div>
                        <div class="layui-form-mid layui-word-aux">
                            <span class="x-red">*如全国包邮,XX专用模板</span>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label for="" class="layui-form-label" style="width:118px;">
                            计费类型
                        </label>
                        <div class="layui-input-inline" style="width:50%">
                            <input type="radio" lay-filter="choseType" name="text_chargType" value="1" title="按件数" checked>
                            <input type="radio" lay-filter="choseType" name="text_chargType" value="2" title="按重量">
                        </div>
                      
                    </div>

                    <div class="layui-form-item layui-form-text">
                        <label for="text_delAmount" class="layui-form-label" style="width:118px;">
                            设置配送区域及运费
                        </label>
                        <div class="layui-input-inline" style="width:75%">
                            <table class="layui-table">
                                <thead>
                                    <tr>
                                        <th style="width:50%">可配送区域</th>
                                        <th style="width:10%" id="chargeFirstText">首件(个)</th>
                                        <th style="width:10%">运费(元)</th>
                                        <th style="width:10%" id="chargeNextText">续件(个)</th>
                                        <th style="width:10%">续费(元)</th>
                                        <th style="width:10%">操作</th>
                                    </tr>
                                </thead>
                                <tbody id="charge1Body">

                                </tbody>

                            </table>
                            
                        </div>
                  
                        <div class="layui-form-mid layui-word-aux">
                            <span class="x-red">*</span>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="" class="layui-form-label" style="width:118px;">
                            
                        </label>
                        <div class="layui-input-inline" style="width:25%">
                            <button class="layui-btn" id="btnChoseArea">点击添加可配送区域和运费</button>
                        </div>

                    </div>


                    <div class="layui-form-item" style="text-align:center;">
                        <div class="layui-input-block" style="margin:0;">
                            <button class="layui-btn" lay-submit lay-filter="add">提交</button>

                        </div>
                    </div>

                </div>

            </div>
        </div>
    </div>
</div>

<script src="~/scripts/Set/AddTemplate.js"></script>
<script>
    AddTemplateClass.Instance.Init();
</script>
